import request from "../utils/request";

export function getCommentList(data){
  return request({
    url:'/comment/getCommentList',
    method:'post',
    data:data
  })
}

export function getComment(id){
  return request({
    url:'/comment/'+id,
    method:'get'
  })
}

export function updateComment(data){
  return request({
    url:'/comment/update',
    method:'post',
    data:data
  })
}

export function delComment(id){
  return request({
    url:'/comment/'+id,
    method:'delete'
  })
}
export function getCommentPage(data){
  return request({
    url:'/comment/getCommentAll',
    method:'post',
    data:data
  })
}
